using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class PickWeaponOnce : PickWeapon
{
    public int index;

    private ActiveStateManager stateManager;
    private void Start()
    {
        stateManager = ActiveStateManager.instance;
        gameObject.SetActive(!stateManager.getPickState(index));
    }
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.F) && isTrigger)
            pick();
    }
    public new void pick()
    {
        stateManager.setPickState(index);
        base.pick();
    }
}
